package cn.csc.module.member.convert.rolemenu;

import java.util.*;

import cn.csc.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.csc.module.member.controller.app.rolemenu.vo.*;
import cn.csc.module.member.dal.dataobject.rolemenu.MemberRoleMenuDO;

/**
 * 角色和菜单关联 Convert
 *
 * @author liuchuang
 */
@Mapper
public interface MemberRoleMenuConvert {

    MemberRoleMenuConvert INSTANCE = Mappers.getMapper(MemberRoleMenuConvert.class);

    MemberRoleMenuDO convert(AppMemberRoleMenuCreateReqVO bean);

    MemberRoleMenuDO convert(AppMemberRoleMenuUpdateReqVO bean);

    AppMemberRoleMenuRespVO convert(MemberRoleMenuDO bean);

    List<AppMemberRoleMenuRespVO> convertList(List<MemberRoleMenuDO> list);

    PageResult<AppMemberRoleMenuRespVO> convertPage(PageResult<MemberRoleMenuDO> page);

    List<AppMemberRoleMenuExcelVO> convertList02(List<MemberRoleMenuDO> list);

}
